package com.medication.utils;

import java.util.HashMap;

public class JsonModel extends HashMap<String, Object> implements java.io.Serializable {
	/**
	 *
	 */
	private static final long serialVersionUID = 3700922341162421250L;

	public JsonModel() {
		this.put("code", AppMessages.SUCCESS_CODE);
		this.put("msg", AppMessages.SUCCESS_MSG);
	}

	public JsonModel(String code, String msg) {
		this.put("code", code);
		this.put("msg", msg);
	}

	public void setMsg(String msg) {
		this.put("msg", msg);
	}

	public void setCodeMsg(String code, String msg) {
		this.put("code", code);
		this.put("msg", msg);
	}

}
